/**
 * @constructor
 */
function AreaTest() {
	
	var assert = new Assert();
	
	this.testConstructor = function() {
		
		somewhatPassablePoints = [[1,1],[1,2],[1,3]];
		impassablePoints = [[2,1],[2,2],[2,3]];
		
		area = new Area(5,6, somewhatPassablePoints, impassablePoints);
		
		assert.assertEquals(5,area.getWidth(),"Area width should be 5");
		assert.assertEquals(6,area.getHeight(),"Area height should be 6");
		assert.assertEquals(TerrainType.IMPASSABLE,area.getTerrainType(2,1),"Terrain at (2,1) should be "+TerrainType.IMPASSABLE);
		assert.assertEquals(TerrainType.SOMEWHAT_PASSABLE,area.getTerrainType(1,1),"Terrain at (1,1) should be "+TerrainType.SOMEWHAT_PASSABLE);
	};
	
	this.testEdit = function() {
		area = new Area(5,6, null, null);
		assert.assertEquals(TerrainType.PASSABLE,area.getTerrainType(1,1),"Terrain at (1,1) should be "+TerrainType.PASSABLE);
		area.edit(1, 1, TerrainType.SOMEWHAT_PASSABLE);
		assert.assertEquals(TerrainType.SOMEWHAT_PASSABLE,area.getTerrainType(1,1),"Terrain at (1,1) should be "+TerrainType.SOMEWHAT_PASSABLE);
	};
	
}
	